import Login from '../member/whr/login/login';
import Book from '../member/whr/book/book';
import App from '../App';
import Chat from '../member/whr/chat/chat';
import Live from '../member/yhj/live';
import Meeting from '../member/hsl/metting';
import Document from '../member/zxl/document';
import Shared from '../member/zxl/shared';
import Favorites from '../member/zxl/favorites';
import MyDocs from '../member/zxl/MyDocs';
import TeamFiles from '../member/zxl/TeamFiles';
import KnowledgeBase from '../member/zxl/KnowledgeBase';
import Wo from '../member/zjh/wo';
import { createBrowserRouter } from 'react-router-dom';
import Reset from '../member/whr/login/reset'
import Register from '../member/whr/login/register'

const router = createBrowserRouter([
  {
    path: '/',
    element: <Login></Login>,
  },
  {
    path: '/app',
    element: <App></App>,
    children: [
      {
        path: 'book',
        element: <Book></Book>,
      },
      {
        path: 'chat',
        element: <Chat></Chat>,
      },
      {
        path: 'live',
        element: <Live></Live>,
      },
      {
        path: 'meeting',
        element: <Meeting></Meeting>,
      },
      {
        path: 'document',
        element: <Document></Document>,
      },
      {
        path: 'document/shared',
        element: <Shared></Shared>,
      },
      {
        path: 'document/favorites',
        element: <Favorites></Favorites>,
      },
      {
        path: 'document/recent',
        element: <Document></Document>,
      },
      {
        path: 'document/my-docs',
        element: <MyDocs></MyDocs>,
      },
      {
        path: 'document/team-files',
        element: <TeamFiles></TeamFiles>,
      },
      {
        path: 'document/knowledge-base',
        element: <KnowledgeBase></KnowledgeBase>,
      },
      {
        path: 'document/knowledge-base/new',
        element: <Document></Document>,
      },
      {
        path: 'wo',
        element: <Wo></Wo>,
      },
    ],
  },
  {
        path:'/register',
        element:<Register></Register>
    },
    {
        path:'/reset',
        element:<Reset></Reset>
    }
]);

export default router;
